package com.common.entity;

/*
  @author author
  @create 2020-11-19:11:04
  投诉反馈实体类
*/


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "反馈/投诉数据表")
public class Compliant implements Serializable {

    @ApiModelProperty(value = "主键")
    @TableId(value = "compliant_id",type = IdType.AUTO)
    private Integer compliantId;

    @ApiModelProperty(value = "用户名")
    @TableId(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "反馈类型")
    @TableId(value = "compliant_feedbacktype")
    private String compliantFeedbacktype;

    @ApiModelProperty(value = "问题")
    @TableId(value = "compliant_question")
    private String compliantQuestion;

    @ApiModelProperty(value = "图片")
    @TableId(value = "compliant_img")
    private String compliantImg;

    @ApiModelProperty(value = "软删除")
    @TableId(value = "compliant_logicflage")
    @TableLogic
    private Integer compliantLogicflage;

    @ApiModelProperty(value = "乐观锁")
    @TableId(value = "compliant_version")
    @Version
    private Integer compliantVersion;

    @ApiModelProperty(value = "创建时间")
    @TableId(value = "compliant_createdate")
    @TableField(fill = FieldFill.INSERT)
    private Date compliantCreatedate;

    @ApiModelProperty(value = "修改时间")
    @TableId(value = "compliant_updatedate")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date compliantUpdatedate;
}
